Function Initialize-ISEOptionsConfigurator
{
    [CmdletBinding()]
    Param()
    
    Process
    {
        $private:ConfigManagerModule = Get-Module ConfigManager
        If ($ConfigManagerModule -Eq $Null)
        {
            # Check if it's available
            $private:ConfigManagerModule = Get-Module -ListAvailable ConfigManager
            If ($ConfigManagerModule -Eq $Null)
            {
                Throw "ConfigManager module is not available!"
            }
            
            Import-Module ConfigManager -Global
        }
        
        Initialize-ConfigManagerPlugin "ISEOptionsConfigurator" { Get-DefaultISEOptionsConfiguratorSettings | New-XmlDocument }
    }
}

Export-ModuleMember Initialize-ISEOptionsConfigurator

Initialize-ISEOptionsConfigurator
